@echo off

set CommonCompilerFlags=-MT -nologo -Gm- -GR- -EHa- -Od -Oi -WX -W4 -wd4201 -wd4100 -wd4189 -wd4819 -wd4067 -wd4456 -DHANDMADE_INTERNAL=1 -DHANDMADE_SLOW=1-DHANDMADE_WIN32=1 -FC -Z7 -Fmwin32_handmade_hero.map
set CommonLinkerFlags=-opt:ref user32.lib Gdi32.lib winmm.lib

IF NOT EXIST ..\build mkdir ..\build
pushd ..\build

REM 32-bit build
REM cl %CommonCompilerFlags% ..\code\win32_handmade_hero.cpp /link -subsystem:windows,5.2 %CommonLinkerFlags%

REM 64-bit build
cl %CommonCompilerFlags% ..\code\win32_handmade_hero.cpp /link %CommonLinkerFlags%
popd
